<?php
header('Content-type: text/html; charset=utf-8');
?>
<?php
echo $this->adminToolBar('language', 'index', '/admin/translate/edittranslate/', '/admin/translate/edittranslate/', '/admin/translate/delete/', '');
?> 
<div class="mid-content">
	<table class="box-table-a" width="100%"> 
		<tr>
			<th width="30%" align="left"><b>Key Text</b></th>
			<th width="1%">&nbsp;</th>
			<th width="30%" align="left" colspan="2"><b>English Text</b></th>
			<th width="1%">&nbsp;</th>
			<th width="30%" align="left" colspan="2"><b>Russian Text</b></th>
			<th width="1%">&nbsp;</th>
		</tr>
<?php
foreach ($this->paginator as $entry) :
?>
		<tr>
	        <td><?php echo substr(str_replace('%', '', $entry['keyText']), 0, 100) . "..."; ?></td>
	        <td width="1%">&nbsp;</td>
	        <td><?php echo substr($entry['en_text'], 0, 100) . "..."; ?></td>
	        <td width="1%">&nbsp;</td> 
	        <td width="5%" align="center"><a href="javascript: void(0);" onclick="loadPage('/admin/translate/edittranslate/id/<?php echo $entry['id']; ?>/lang/en/section/<?php echo $this->section; ?>');"><img src="/images/admin/icons/edit.gif" alt=""/></a></td>
	        <td><?php echo substr($entry['ru_text'], 0, 100) . "..."; ?></td>
	        <td width="1%">&nbsp;</td>
	        <td width="5%" align="center"><a href="javascript: void(0);" onclick="loadPage('/admin/translate/edittranslate/id/<?php echo $entry['id']; ?>/lang/ru/section/<?php echo $this->section; ?>')"><img src="/images/admin/icons/edit.gif" alt=""/></a></td>
	    </tr>	
<?php
endforeach;
?>
</table>
</div>
<div class="pagination">
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'translate/pagination_control.phtml'); ?> 
</div>